package io;

import java.io.*;

public class BRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("./src/io/BRDemo.java");
        InputStreamReader isr=new InputStreamReader(fis);
        BufferedReader br=new BufferedReader(isr);

        String line;
        while((line=br.readLine())!=null)  //字符缓存输入流读取到末尾，返回值就是null
        {
            System.out.println(line);
        }


        br.close();
    }
}
